A partition of a space $Y$ is a pair $(A,B)$ of disjoint nonempty open subsets of $Y$ such that $Y = A \cup B$. Note that then $A, B$ are clopen (= open and closed) in $Y$.
Let us first prove the following:
Let $X$ be a connected topological space, let $x$ be a cut point of $X$ and let $(C,D)$ be a partition of $X \setminus \{x\}$. Then $\{x\}$ is either open or closed in $X$. Moreover, if $\{x\}$ is open, then $C$ and $D$ are closed in $X$, and if $\{x\}$ is closed, then $C$ and $D$ are open in $X$.
Proof. Since $C$ is clopen in $X \setminus \{x\}$, there is an open subset $V$ of $X$ such that $C = V \cap (X \setminus \{x\}) = V \setminus \{x\}$ and there is a closed subset $F$ of $X$ such that $C = F \cap (X \setminus \{x\}) = F\setminus \{x\}$. Thus $V \setminus \{x\} = F \setminus \{x\}$. But $V = F$ is impossible because then $V$ would be a nonempty clopen subset of $X$ whose complement $X \setminus V = (X \setminus \{x\}) \setminus (V \setminus \{x\}) = (X \setminus \{x\}) \setminus C = D$ is a nonempty which contradicts the fact that $X$ is connected. Hence either $x \in V$ and $x \notin F$ or $x \in F$ and $x \notin V$.
In the first case we have $\{x\} = V \setminus F$ which is open in $X$, in the second case we have $\{x\} = F \setminus V$ which is closed in $X$. The "moreover" part is obvious since $C, D$ are clopen in $X \setminus \{x\}$, thus in the first case closed in the closed subspace $X \setminus \{x\}$ and in the second case open in the open subspace $X \setminus \{x\}$. Note that $\{x\}$ cannot be both open and closed - otherwise $(\{x\}, X \setminus \{x\})$ would be a partition of $X$.
Now let us prove that $C' = C \cup \{x\}$ is connected. The same is of course true for $D' = D \cup \{x\}$.
Let $\mathbf 2 = \{1,2\}$ with the discrete topology. It is well-known that a space $Z$ is connected iff all continuous maps $Z \to \mathbf 2$ are constant.
If $\{x\}$ is open, then $C,D$ are closed in $X$ and $C',D'$ are open as their complements. Similarly, if $\{x\}$ is closed, then $C',D'$ are closed in $X$.
Now let $f : C' \to \mathbf 2$ be continuous. Define $F : X \to \mathbf 2, F(x) = f(x)$ for $x \in C'$ and $F(x) = f(p)$ for $x \in D'$. Note that this is well-defined because on $C' \cap D' = \{x\}$ both parts agree.
By definition, the restrictions $F \mid_{C'}$ and $F \mid_{D'}$ are continuous. Since either both $C', D'$ are open or are closed, $F$ is continuous. Since $X$ is connected, $F$ is constant. Thus also $f = F \mid_{C'}$ is constant.