Diffractive leptoproduction of small masses in QCD