Crisis-hit Sri Lanka swears in new president