I am hiring an associate at my law firm and I put together an employment agreement. What can I do, if anything, to prevent the associate from leaving and taking clients and files with them?  

The question is good, but the answer is going to be very unsatisfactory. There is not a lot one can do in an employment contract with an associate to prevent them from taking files when they leave if the clients want to go with them.