Exploring cosmic origins with CORE: inflation