Gas prices hit $4 per gallon average in U.S. as Iran war drags on