I would remove the tree from the container, and remove all the roots that have rotted. Then replant the tree into a fast draining medium with good aeration. Since the tree has already dropped much of its leaves, you should not have to cut the top of the plant back. If you can remove the remaining old medium with causing further damage I would also recommend doing so. The best to you and to your tree.