Contrastive Learning Guided Latent Diffusion Model for Image-to-Image Translation