Hierarchical Preference Optimization: Learning to achieve goals via feasible subgoals prediction