April, you have a big questions that has many answers for the different situations you speak of.
There are a few basic steps taken to reduce insect infestation;
- design to prevent,
water ingress, insects via stumps by fitting metal caps on stumps, ground clearance
- building practises to ensure the design is actually put in place, people take short cuts
- Chemicals are used sometimes, applied to the ground
- mechanical processes are applied stumps, wall joints, roof flashing, guttering if needed
I would research under;
- 'preventing pests entering buildings'
- 'preventing moisture ingress'
- basic steps for safe home building
for a start.