The HMS Dragon requiring repairs comes amid US president Donald Trump’s criticism of the state of the UK armed forces.