Australian Shares Close Lower as Ex-Dividend Activity Offsets Wall Street Gains