Cell reprogramming modelled as transitions in a hierarchy of cell cycles