SequenceMatch: Imitation Learning for Autoregressive Sequence Modelling with Backtracking