Operator-valued Riemann-Hilbert problem for correlation functions of the XXZ spin chain