CLEF: Clinically-Guided Contrastive Learning for Electrocardiogram Foundation Models