Anelasticity and viscoplasticity in metallic glasses