US President Donald Trump told Fox News that "a part" of the Republican defeat in the midterms "was Iran."