A webcam system that lets parents drop in and watch their children while at nursery school has written to families to tell them of a data breach.