Nestle has blamed a rise in costs for both cocoa and coffee as it today warned of having to pass on the increase to shoppers.