A 70-year-old woman presents with progressive jaundice, weight loss, and generalized pruritus over 3 months. She denies abdominal pain or fever. On physical examination, she has scleral icterus and cachexia. Laboratory tests reveal elevated bilirubin and alkaline phosphatase. Ultrasound shows a dilated biliary tree but no gallstones. What is the most appropriate next diagnostic step?