A new study of 1 million employees shows what happens when teammates leave