Statistics for Noise on resistive switching: a Fokker–Planck approach