Collective behaviour, uncertainty and environmental change