Both Donald Trump and Vladimir Putin would reap benefits from a British vote to leave the European Union.