Brazilian brewer AmBev has agreed to sell a stake in its Peruvian business to local firm Grupo Romero.