US Predident Donald Trump hit back at Twitter after the microblogging site, for the first time, flagged some of his tweets with a fact-check warning.