Pinterest delivers revenue beat on digital ad market rebound