Only three empty beds remain in secure care for children across Scotland.