Interventional and Counterfactual Inference with Diffusion Models