The investigation was launched after a man tried to get the six-year-old girl to leave the pub with him.