Dollar Tree has sold Family Dollar to private equity firms for $1 billion after facing challenges trying to make the acquisition of the bargain chain fit into its business model.