Scotland’s First Minister has said his party does not have an issue with women despite two thirds of the MSPs to announce they will not stand again being female.