Planning With Diffusion For Flexible Behavior