Hopf bifurcation via the Poincaré procedure in delay-differential equations with two delays