Text this: Occurrence and types of medication error and its associated factors in a reference teaching hospital in northeastern Iran: a retrospective study of medical records