The four-year-old girl was on foot when she was hit by a BMW in Glasgow