Global Dynamics of a Multi-group SEIR Epidemic Model with Infection Age