Exploring cosmic origins with CORE: extragalactic sources in cosmic microwave background maps