Chinese officials have been told to refrain from smoking in public places in an effort to set an example for the rest of the country.