Mexico is restricting television advertising for high-calorie food and soft drinks, as part of its campaign against obesity, the government says.