The Australian sharemarket closed at record highs on Thursday, lifted by energy and retail companies after brushing off a negative lead from Wall Street.