The formation of the Cassini division in Saturn's rings