On the treewidth of triangulated 3-manifolds