There’s a record $5.3 trillion in cash on the sidelines as investors get more bearish on stocks. Here’s why that could mean big gains ahead.