Coca-Cola European Partners is to eliminate almost 300 jobs in the UK with the closure of two factories.