Citigroup's third-quarter profit edges up and beats lowered expectations