Associations of person-related, environment-related and communication-related factors on medication errors in public and private hospitals: a retrospective clinical audit