The US president’s move follows a decision by Twitter to add a “fact-check” notice to his tweets.