Prevalence and risk factors for attempted suicide in the elderly: a cross-sectional study in Shanghai, China