Eating a diet rich in fruit and vegetables while cutting down on meat substantially lowers the risk of obesity, research shows.