Millions of dollars originally intended for smoking cessation programs in Massachusetts have been diverted to offset budget deficits, leaving the state struggling to fund quit-smoking hotlines, treatment programs and anti-tobacco advertising, the New England Center for Investigative Reporting has found.