University of South Carolina president quits, marred by plagiarism allegations