The Royal Navy’s flagship has had her repair period extended after a mechanical fault was found before a deployment.