Reducing food waste and changing the way people consume calories will help deliver a sustainable food system and reduce emissions, a study suggests.