Brazil's president warns rioters 'they will be punished'