Scientists in China have developed a spray-on coating for clothes that stops dirt and stains from sticking to the fabric.