A theoretical basis for model collapse in recursive training