Wealthier families reap most of the gains from a booming stock market