Leaders who create a more educated, accepting workplace culture have a better chance of retaining critical female talent.