Nearly 25% of inpatients experience adverse events in hospitals, study finds