Research found that some children are spending up to 23 hours each day alone in their cells with no access to education.