Mum praised for making daughter pick litter after catching her walking on tram tracks