Taiwan’s stock exchange set another new record high on Wednesday, driven by demand for exchange-traded funds and TSMC-led tech stocks from foreign investors.