Scotland’s First Minister has apologised to all patients who have had an “unsatisfactory experience” in hospital, as surging flu cases have meant the NHS has faced “unprecedented demand”.