Unveiling neutrino phenomenology, $(g-2)_{e,\mu}$ and leptogenesis through U(1) gauge symmetries in an inverse seesaw model