Evolution and genetic prediction of hereditary disease risks in ancient and modern humans