Exploring cosmic origins with CORE: Inflation