Topology induced first-order phase transitions in lattice quantum gravity