Volkswagen and Ford workers in Brazil have agreed to a 20% reduction in working hours as well as wage cuts in order to avoid mass layoffs.