A man who sexually abused a five-year-old girl when he was a teenager more than 20 years ago has walked free from court and been handed a £100 fine.