A 27-year-old woman presents with lower abdominal pain and vaginal spotting. Her last normal menstrual period was 7 weeks ago. A urine pregnancy test is positive. She is haemodynamically stable. On examination there is cervical motion tenderness. What is the most appropriate immediate investigation to help confirm the diagnosis?