Improving the accuracy of medical diagnosis with causal machine learning