Children in Bedfordshire were detained by police hundreds of times last year, new figures show.