Grime star Stormzy has apologised on Twitter for posting a number of tweets in the past in which he used homophobic language.