Time consistency and optimal government policies in perfect foresight equilibrium