Agreement to save €4bn includes factory capacity cuts and 35,000 job losses by 2030 ‘in socially responsible’ way