Manchester United have confirmed that Nemanja Matic has joined the club, becoming their third signing of the summer.