Twitter has locked Donald Trump’s account for 12 hours and says it will ban him if he breaks its rules again.