Precautionary saving demand and consumption dynamics with the spirit of capitalism and regime switching