Molecular localization induced by collisions