Network Rail could have breached its licence in carrying out its £38.5bn CP5 enhancement programme, the country’s chief rail regulator has said.