Walmart says higher gas prices from the Iran war are slowing sales growth, signaling growing consumer strain.