US discount chain Dollar Tree Stores has entered into an agreement to acquire rival Family Dollar in a deal worth around US$8.5bn.