A man has been cleared of attempting to kidnap a six-year-old boy with the aim of committing a sexual offence - but has admitted another sex offence