A man who twice sexually assaulted a teenage girl in a pub, groping her over her clothing, has avoided prison.