Investors may be tempted, after three years of big gains, to ditch the stock market amid the current bout of volatility.