A strike over job cuts at a General Motors plant in Brazil has ended but trouble has now broken out at a Mercedes factory in the country.