A man who sexually assaulted women at two coffee shops on the same day has been handed a suspended sentence.