Long-range correlation effects, generalized Brownian motion and anomalous diffusion