Step 1. Shielding Paint
With the pickguard and electronics removed from the guitar, you can paint shielding paint from Stew-Mac on the inside of the control cavity and the pickup routs. Two or three coats (allowing it to dry overnight between coats) should provide enough coverage. All grounding material must come in contact somehow with the back of the potentiometer (ground). Connect a ground wire from the paint to the back of a potentiometer or paint up to a screw hole so the paint comes in contact with the copper tape on the back of the pickguard (see step 2).
Step 2. Copper Tape
This tape (also from Stew-Mac) is great for sticking to the back of pickguards and totally blocking out any interference. The tape is grounded by coming in contact with the switch and potentiometer casings.
Step. 3 Leads
Keeping all electrical connections to an absolute minimum length will reduce the chances of interference.
Also, twisting the positive and negative leads from your pickups (as seen on this Jazz Bass pickup) will help cancel interference. It is debatable whether this makes a noticeable difference in passive equipment, but it won't hurt, some like it for aesthetics and wire manageability.
Step 4. Final details
Having a good quality, shielded instrument cable free of cracks and keeping it as short as possible will help tremendously in avoiding interference.
further reading:
Eliminating Troublesome Hum & Buzz Created By Electric Guitars by Bruce Bartlett