Optimal Assistance for Object-Rearrangement Tasks in Augmented Reality