This year has seen the biggest whooping cough outbreak in decades and researchers now think they know why.