Nearly 40,000 child sexual abuse offences were committed by children in the space of a year, a new report has found.