In a long speech, he portrayed himself as part of a growing anti-establishment movement that had resulted in the UK's vote to leave the European Union and Donald Trump's victory in the US presidential election.