Australian dollar weakens