Data Augmentation and Pre-training for Template-Based Retrosynthetic Prediction