Frequent inspections improve schools, says study