Armenia's leader resigns amid peaceful mass protests