Exploring cosmic origins with CORE: The instrument