Donald Trump has been sworn in as the 47th president of the United States, promising a “revolution of common sense”.