Triple helix versus skyrmion lattice in two-dimensional noncentrosymmetric magnets