When creating or editing an invoice, the amount of retainer funds available for the client will show up just below the invoice total.
To view the available retainers, click the funds amount.
A dialog will pop up, and from here you simply click on the retainer number to apply it to the invoice.
After the retainer is applied, you can see the remaining balance of the retainer funds as you continue to build your invoice.