Temperature dependence of impurity resistivity due to hydrogen in metals