A 45-year-old man presents with acute epigastric pain radiating to the back, associated with vomiting. He drinks alcohol socially but has no history of gallstones. Serum amylase and lipase are elevated to three times the upper limit of normal. Ultrasound shows gallstones and a dilated common bile duct. What is the most likely aetiology and appropriate next step?