The Iran war has clouded the economic outlook as higher energy prices squeeze consumers and businesses.