Imitating Task and Motion Planning with Visuomotor Transformers