The Causes of and Factors Associated with Prescribing Errors in Hospital Inpatients