Investors are still betting on a rising stock market, but they’ve been doing so with less long-term conviction.