The properties of He IIλ1640 emitters at z ∼  2.5–5 from the VANDELS survey