Search for dark matter produced in association with a Higgs boson decaying to γγ or τ + τ − at √s=13 TeV