Factors influencing resilience in patients with advanced cancer: A cross-sectional study