Beloved principal Judith Potter to resign from Loreto end of next year