Transition from stress-driven to thermally activated stress relaxation in metallic glasses