Estimation of the hazard function in a semiparametric model with covariate measurement error