High moments of character sums and products of primes in arithmetic progressions