Exploring cosmic origins with CORE: the instrument