The Australian sharemarket has surged to a record high, after stocks closed higher on Wall Street.