The number of high-net worth individuals across the globe rose to a record in 2024, driven largely by gains in the US stock market.