HJB equations for the optimal control of differential equations with delay in the control variable