Pinterest shares surged after topping Wall Street’s fourth-quarter estimates and showing robust user growth from a year ago.