Liverpool have apologised after video footage of an alleged racist gesture by a fan was shown on their website.