Termites shape their collective behavioural response based on stage of infection