Dissipative effects on the mean square displacement of an oscillator