Moderator of Presbyterian Church in Ireland resigns