The weather may not always have been kind to cocoa farmers in West Africa, but until recently it was at least broadly predictable.