QUILL: Query Intent with Large Language Models using Retrieval Augmentation and Multi-stage Distillation