Pinterest posted its slowest quarterly revenue growth in nearly two years and turned a loss, the latest social media platform…