Amortised Variational Inference for Hierarchical Mixture Models