Parents have been given advice on when their children should be allowed to travel to and from school by themselves.