The studies were a setback for the optimistic view that semaglutide and other drugs used in obesity and diabetes treatment could help prevent a number of brain diseases.