Hegseth walks back controversial comments on women and gays in the military