Exploring cosmic origins with CORE: Cosmological parameters