Geometrical frustration and defects in condensed matter systems