The police union has launched an investigation into how officers were deployed during the Baltimore riots.