Peru's interim president resigns after days of protests