Prevalence of frailty among community-dwelling elderly persons in Spain and factors associated with it