A 65-year-old man presents to the emergency department with large-volume haematemesis and melena. He is pale, diaphoretic and hypotensive with blood pressure 86/50 mm Hg and heart rate 120 beats per minute. What is the most important immediate management step?