The detection and estimation of long memory in stochastic volatility