Dozens of people fighting with weapons in Wakefield city centre has led to an urgent police investigation.