What Donald Trump and Brexit have in common