New research suggests eating more meals prepared at home could reduce the risk of developing Type 2 diabetes.

Researchers from Harvard University found that people who ate about two homemade lunches or dinners each had a 13 percent lower risk of developing Type 2 diabetes compared to people who ate less than six homemade lunches or dinners a week, NDTV reported. Type 2 diabetes is a major risk factor for heart disease.

"There is growing trend of eating meals prepared out-of-home in many countries. Here in the United States, energy intake from out-of-home meals has increased from less than 10 percent in the mid-60s to over 30 percent in 2005-2008, and average time spent on cooking has decreased by one third," researcher Geng Zong, a research fellow at Harvard's T.H. Chan School of Public Health in Boston, told CBS News.

For the study, researchers collected and analyzed data from nearly 58,000 women in the Nurses' Health Study and more than 41,000 men in the Health Professionals Follow-up Study and followed for up to 36 years (1986-2012).

Both studies have suggested that eating out, especially in fast food chain restaurants, is associated with lower diet quality and higher body weight in children and young adults. In the current study, the researchers demonstrated that eating homemade meals was associated with less weight gain over eight years in these middle-aged and older health professionals. Overweight and obesity are risk factors for cardiovascular disease and Type 2 diabetes.

While researchers don't provide a specific number of homemade meals people should eat each week, Zong said "more could be better."

The findings were presented at the American Heart Association's Scientific Sessions 2015.