Diffusion and gelation in polyadditions. IV. Statistical theory of ring formation and the absolute gel point