Foreign investors pulled out funds worth a record $30 billion from equities so far this year, and instead piled into South Korea ‌and Taiwan, dominated by semiconductor and memory names