Australia has come under sharp criticism from the United Nations and human rights groups for its policy of holding asylum-seekers in offshore detention camps in the Pacific.