Connecticut won the NCAA women’s basketball championship, beating South Carolina, 82-59, for its record-extending 12th title.