A model of defects in metallic glasses