Stocks continue to hit record highs, yet those pushing them there are trading less and less.

The number of stocks and exchange-traded products changing hands in the U.S. and Europe has fallen steadily in recent months as ultralow volatility, a lack of market-moving news and the rising popularity of passive investment funds have kept many investors on the sidelines.

Some...