Even if the rent was collected in cash, it is the responsibility of the agency to deposit the collected rent into the trust account and to then pay it to the landlord.
If the correct process isn't followed, the agency is responsible and their license can be withdrawn.
If its in NSW you'll need...