Hard diffraction at HERA in the dipole model of BFKL dynamics