Police have broken up an alleged cockfight, a controversial practice that has been banned across all Australian states and territories.