Canada topped the United States 3-2 in overtime to win the gold medal in women's ice hockey at the Sochi Olympics.