Grains weaken ahead of US corn harvest