Peruvian president resigns amid corruption scandal