Monsters in the dark: modelling the formation of bright galaxies in the distant Universe