Carol Folt, president of the University of Southern California, will retire in July, she announced Friday.