Offline Imitation Learning with Variational Counterfactual Reasoning