Density Hales-Jewett theorem