A 23-year-old woman presents with acute onset palpitations and dyspnoea. ECG shows atrial fibrillation with a ventricular rate of 150 beats/min. She is haemodynamically stable, has normal left ventricular function on previous echocardiogram, and symptoms started 4 hours ago. What is the most appropriate initial management?