Despite the Dow's record on Tuesday, inflation has eroded almost half the index's overall gain since 1994