A 52-year-old man presents with a 2-week history of progressive bilateral leg oedema, orthopnoea and exertional dyspnoea. Examination reveals elevated JVP, bibasal crackles and pitting oedema to the knees. Chest radiograph shows pulmonary congestion. What initial investigation is most helpful to confirm a diagnosis of heart failure and assess systolic function?