Peruvian president divides opposition to avert ousting