Sri Lanka president resigns after fleeing country following mass protests