Learning Functionally Decomposed Hierarchies for Continuous Control Tasks With Path Planning