De novo mutation and identity-by-descent drive disease haplotypes, biallelic traits and multilocus pathogenic variation