Quality of life and its contributing factors in an elderly community‐dwelling population in Shanghai, China