The war in Iran has swiftly turned emerging markets into one of the worst places to be for global investors.