Fluctuations of ergodic averages