The festival’s director has apologised for his comments, which were condemned as sexist by many figures in the industry.