Burkina Faso president resigns after coup