Investors pull out of US stocks and into Europe and emerging markets