Diffusion Models with Implicit Guidance for Medical Anomaly Detection