Exploring cosmic origins with CORE: Gravitational lensing of the CMB