The First Minister has rubbished accusations the SNP has a problem with women after 14 of his female MSPs are to quit Holyrood next year.