Diffusion-Based Planning for Autonomous Driving with Flexible Guidance