President Donald Trump has acknowledged that gas prices have increased since the start of the Iran war.