Data retention statistics and modelling in HfO<inf>2</inf> resistive switching memories