Hypercube subgraphs with minimal detours