A retrospective study of factors associated with persistent delirium