The only way they could hope to keep up with the index’s double-digit jumps was by riding the market’s leaders. By definition, of course, this meant pouring investors’ retirement savings into the market’s most expensive shares—often just as they were peaking.