US consumer confidence up in October after 3 months of decline