Yes a condensation trap will prevent it happening. Mandatory in new builds nowadays. It's also possible the fan is no longer performing as it should or was under powered to begin with so maybe check that too. You might find the fan is jammed up with cobwebs etc too so try and give the blades a...