Afghanistan on brink of 'humanitarian catastrophe', U.N. agencies say