Tight connection between direct and indirect detection of dark matter through Higgs portal couplings to a hidden sector