Women underreach the top by leaving before they leave