Puerto Rico governor announces resignation after mass protests