Stocks have been on a terrific run over the past decade. But the years ahead might not be quite so spectacular.