Tory election hopeful called climate crisis 'socialist Trojan horse'