A 65 year old man presents with chest pain and shortness of breath. ECG shows atrial fibrillation with rapid ventricular response at 150 beats per minute. He is hypotensive with systolic blood pressure 80 mm Hg and has signs of pulmonary oedema. What is the most appropriate immediate management?