Manufacturers who do not make products healthier within 18 months may face action, the government says.