Manchester United have completed the signing of Juan Mata from Chelsea for a club-record fee of £37.1million.