Lineage-specific protection and immune imprinting shape the age distributions of influenza B cases