The potentially-deadly practice used on children by youth detention officers in Western Australia will be replaced with an alternative method within weeks.