A connection between orthogonal polynomials on the unit circle and matrix orthogonal polynomials on the real line