A 10-year-old boy in Edinburgh was caught with a bladed weapon by police, new stop-and-search data has revealed.