Multiple haplotype reconstruction from allele frequency data