H-GAP: Humanoid Control with a Generalist Planner