The ASX wilted across the session to close marginally higher thanks to buying in banking and healthcare stocks.