Hospital patients fare better in the hands of female doctors, a new study suggests