Andreas Pereira has signed a new four-year deal with Manchester United - keeping him at Old Trafford until 2023.