With whom did Rome have alliances at the end of the regal period?