Stability of triaxial shapes in ground and excited states of even-even nuclei in the $A\ensuremath\sim70$ region