Wales recorded a third successive victory over Australia as they ended their Autumn Nations Series campaign by beating the 14-man Wallabies 29-28.