The Australian sharemarket closed at a record high on Wednesday off the back of strong share price growth from the major banks.