A computational test for biological relatedness in genetic association studies using probabilistically inferred haplotypes