The First Minister delivered a keynote speech on the NHS at Heriot Watt University amid growing concern at the state of the health service.