Resident characteristics associated with wandering in nursing homes