Impact of cognitive performance on the functional capacity of an elderly population in Natal, Brazil.