NHS ordered to focus on patient safety as hospitals deal with record demand