Early Detection and Reduction of Memorisation for Domain Adaptation and Instruction Tuning