Measurement of the diffractive cross section in deep inelastic scattering