A 24-year-old man has been sentenced at Edinburgh Sheriff Court in connection with sexual offences in Edinburgh.