Stock markets remain near record highs and economic numbers keep beating expectations, but a closer look reveals traders are starting to step away from the riskiest bets that drove much of this year’s gains. Day traders who fueled rallies in everything from tech stocks to cryptocurrency are now pulling money out of the most speculative investments.