South Korea has leapfrogged the UK to become the world’s eighth-biggest stock market, fueled by a high-octane rally in its artificial intelligence-linked technology champions.