A quarter of the 300,000 children waiting for community NHS care have spent more than a year waiting.