Ofgem forced staff to reapply for jobs as energy crisis spiralled