Latent-based Diffusion Model for Long-tailed Recognition