Modelling the Milky Way's globular cluster system