Just a small addition to the existing answers.
Theorem. There exists a non-metrizable compact Hausdorff space $K$ admitting a continuous surjective function $f:K\to[0,1]^2$ to the unit square such that $f$ has a Borel section if and only if CH holds. Then taking the Peano square-filling curve $p:[0,1]\to[0,1]^2$ we can show that $p$ has a Borel $f$-lifting $[0,1]\to K$ if and only if the Continuum Hypothesis holds.
Skecth of the proof. Consider the split interval $\ddot{\mathbb I}$ (which is the lexicographic product $[0,1]\times\{0,1\}$ endowed with the order topology). It is well-known that $\ddot{\mathbb I}$ is a compact Hausdorff space admitting a continuous surjective map $\ddot{\mathbb I}\to [0,1]$. Then the square $K=\ddot{\mathbb I}\times\ddot{\mathbb I}$ admits a continuous surjective map $f:K\to[0,1]^2$ such that for every point $z\in[0,1]^2$ the preimage $f^{-1}(z)$ contains at most 4 points. Using the answer (and comments) to this question, it can be shown that $f$ has the desired property: it has a Borel section if and only if CH holds. More details on the proof can be found in this paper. $\quad\square$
The above theorem suggests the following (open?)
Problem. Is there a 2-to-1 map $f:K\to M$ from a compact (Rosenthal) space onto a compact metrizable space $M$, which has no Borel selections?