US comedian and actor Kevin Hart says he has stepped down from hosting the 2019 Oscars following a controversy over homophobic tweets.