John Kerry identified immigration and inflation as the two primary factors that drove Donald Trump’s success, even though economic indicators were positive