Threshold resummation for Higgs production in effective field theory