Diffusion Based Representation Learning For Treatment