Nanocapillarity-induced elasticity in nanotubular structures