Resummation and matching of b-quark mass effects in bb̄H production