$O(d,d)$ transformations preserve classical integrability