Value function estimation using conditional diffusion models for control