South Africa says the war in Iran is pushing up living costs at home and taking money “out of the pockets” of ordinary citizens.