The S&P 500 looks frothy, but long-term investors shouldn't panic.