A hierarchical Dirichlet process mixture model for haplotype reconstruction from multi-population data