Liverpool striker Mario Balotelli has apologised for a post on social media which appeared to contain anti-Semitic and racist references.