Decay mechanisms of superflow of Bose-Einstein condensates in ring traps