Preparation of a pure intense beam of metastable helium by laser cooling