Effective stiffness and formation of secondary structures in a protein-like model