Equivariant cohomology of the chiral de Rham complex and the half-twisted gauged sigma model