Barack Obama hit the campaign trail in Ohio to rally support for Democrats ahead of the US midterms, criticising Donald Trump over the war with Iran.