Globalisation was great for some, but created widespread grievances that are now being exploited by populists