Functional data analysis for volatility