A parton model for diffractive processes in deep inelastic scattering