Irish premier resigns as party leader, stays as PM