Ousted former MP David Duguid has thanked medical staff who aided his recovery after he left a spinal injuries clinic on foot.