Claudine Gay, an arts and sciences dean at Harvard since 2018 and the daughter of Haitian immigrants, has been named the college’s 30th president.