ziafazal/api-cohort-average-bug: compute average by number of enrolments instead of number of participants

@mattdrayer @martynjames cohort average for "Proficiency" and "Progress" is computed by number of enrolments instead of number of participants. In order to do the same for "Engagement" section changes in apros are required.