Jeremy Corbyn could pass classified US intelligence to Russia and Iran if he becomes prime minister, Donald Trump has been warned.