The Australian sharemarket closed higher on Thursday after a broad market rally, led by banks, retailers and real estate investment trusts.