As the UK and its European allies ramp up their defence spending, Prince William has spent two days with British troops based in Estonia.