Soaring tech valuations and stock-market gains have boosted the number of billionaires and the wealth they hold.