Double bag trash:
Use two strong plastic garbage bags to put your trash in before putting it in the can. Try to use the thickest quality plastic garbage bags that you can find as a raccoon as an excellent sense of smell. This will mask out the scent of the food and keep raccoons away from the trash can.
You can also place mothballs around the area where you put the trash cans. The strong smell of the mothballs will also mask out the aroma of food to keep raccoons away.
Put powder all over the top of the trash cans to keep raccoons away. Raccoons do not like the feel of powder and will usually stay away from the trash can.
Tie down trash cans:
Use the elastic cord to tie down the lids of the trash cans. Be sure to secure the entire lid of the trash can so that the raccoons cannot get to the garbage. This will make it extremely difficult for the raccoons to get inside of the trash cans and make a mess.
Motion detector lights and sprinklers:
If you want to spend some money on this issue then you can purchase some motion detecting lights and sprinklers that will turn on when a raccoon will come near to the trash cans. The water from the sprinklers will not hard the raccoons but should be enough to scare them way from your trash cans.
Keeping some dirty clothing around the trash cans will give the raccoons the sense that someone is standing in the area and they will stay away from the trash cans.
If none of these methods work then you can always hire a professional to take care of raccoons in your area. However, a professional will charge you a decent amount of money so be prepared for this.