Former Spain goalkeeper Iker Casillas said his Twitter account was hacked after a post saying he was gay caused a stir on the social media platform.