Sri Lanka president resigns after ongoing protests