A 72-year-old woman presents with sudden onset palpitations and breathlessness. On examination her pulse is irregular at 170 beats per minute, BP is 78/48 mmHg, she is clammy and confused. ECG confirms new-onset atrial fibrillation with a rapid ventricular response. What is the most appropriate immediate management?