Burkina Faso president resigns after protests