The US and Israeli attacks on Iran have triggered scenes of chaos and alarm as people flee cities and rush to supermarkets to buy food, fuel and generators.