All political parties need to do more to counter the “toxic” political culture to help attract women, former Scottish first minister Nicola Sturgeon has said.