The stock market’s prospects over the next decade are mediocre at best.