Manchester United defender Harry Maguire has signed a new contract to extend his stay until 2027, with the option for a further year.