Tanguy Ndombele has ended his nightmare spell at Tottenham after terminating his contract a year early.