Mathematical modelling of the selective forces maintaining diversity at the Major Histocompatibility Complex