gold falls, heading for third weekly loss on optimism