Coagulation–fragmentation for a finite number of particles and application to telomere clustering in the yeast nucleus