Dollar Tree, which also owns Family Dollar, has announced that it will close 1,000 stores in the United States after reporting a quarterly loss.