High-mass diffraction in the QCD dipole picture