Hospitals 'safer', report suggests