Learning Functionally Decomposed Hierarchies for Continuous Control Tasks with Path Planning