Structural mechanics of filamentous cyanobacteria