Mondelez International has set out plans to shut two factories in Brazil.