Stock market volatility and regime shifts in returns