Inflation cooling, financials and discretionaries push ASX to marginal gain on Tuesday