Direction-Constrained Control for Efficient Physical Human-Robot Interaction under Hierarchical Tasks