Incommensurate magnetic ground state revealed by resonant x-ray scattering in the frustrated spin system Ca3Co2O6