Gender Differences in Risk Aversion: A Theory of When and Why