Lifestyle differences are to blame for regional variation in obesity rates in Scotland, research has found.