Solution to the multi-particle diffusion problem with applications to Ostwald ripening—I. Theory