Tuning the T cell response through individual and collective cell behaviours