Brazilian unions have ratcheted up the pressure on president Michel Temer with a nationwide general strike that closed schools, disrupted transport networks and led to clashes with public security in several cities.