On the nature of magnetic stripes in cuprate superconductors