Australia’s share market has reached the highest weekly close on record, despite a choppy week of trading.