Radio spectral properties and jet duty cycle in the restarted radio galaxy 3C388