Goldman Sachs has scrapped a diversity rule which barred it from advising all male, all white boards on company flotations.