Hierarchical Learning from Demonstrations for Long-Horizon Tasks