Amid geopolitical uncertainties, Taiwan has slashed its investment in China to the lowest level in nearly a quarter century as the island strives to "derisk" itself from its powerful neighbor.