Medication reconciliation at admission and discharge: an analysis of prevalence and associated risk factors