Relationship between functional status, mental status, and reversible problems in the community-dwelling elderly