Consensus of the Hegselmann-Krause opinion formation model with time delay