The resistors on the Cx and Cy capacitors are used for "DC voltage balance" thus ensuring that series capacitors are roughly sharing the same DC voltage i.e. they each have approximately half the applied DC voltage.
Clearly, if a higher voltage rating capacitor could have been used then, series capacitors would not have been needed but, when putting two in series to reach the overall voltage rating, "DC voltage balancing" has to be done (by resistors) to ensure that one of the capacitors doesn't get most of the applied voltage from the DC power source.
With capacitors in series across a DC supply, ideally there is no current flow and the midpoint of the series capacitors is easily shifted with leakage current. That leakage current is due to capacitor dielectric non-idealities and can vary considerably from capacitor to capacitor (even from the same batch). This is one source of the imbalance that can happen.
Another source of the imbalance is the tolerance on each component's capacitance. When in series, both are charged up with the same number of electrons passing through them but, the capacitor with the higher value capacitance will accumulate the lowest voltage (Q=CV etc.) and this will imbalance the voltages.