Prevalence of and factors associated with polypharmacy among elderly persons resident in the community