Private equity giant Blackstone has acquired family history and genomics company Ancestry in a deal worth $4.7bn.