Unlocking the Diagnostic Potential of ECG through Knowledge Transfer from Cardiac MRI