Substitute Gonzalo Higuain's stoppage-time strike earned Juventus a 1-1 draw in an enthralling Serie A clash against city rivals Torino.