Quantifying influenza transmission in different social contexts