US President Donald Trump criticised social media companies, saying they have silenced "millions of people" in an act of censorship by removing accounts.