Ed Sheeran has quit Twitter "completely" because he has been inundated with nasty messages from online trolls.