A 67-year-old man with chronic liver disease due to hepatitis C presents with haematemesis and melaena. He is tachycardic and hypotensive. After initial resuscitation and blood transfusion, what is the most appropriate next step in definitive management?