How was it that one of Britain’s august art institutions went from having two female artists among its founders to excluding women artists for centuries?