Your landlord can only withhold your deposit if they have evidence that they have lost out financially due to your negligence. It is important to let your landlord know as soon as you have identified bed bugs so it can be resolved and not considered as you being negligent of the property.