H.R. McMaster, who served as a national security adviser to Donald Trump, said foreign leaders tried to manipulate the president.