Theory of electron cyclotron resonance heating. II. Long time and stochastic effects