Factors associated with depression in residents in the post-epidemic era