Age structured S--I--R epidemic model with intra-cohort transmission