Mechanism of yielding and cold flow in glassy polymers