The origin is uncertain, though there is a suggestion that it may be related to a T W Earp, once President of the Oxford University Union. He presumably was a despicable/objectionable person.
My Stepfather, always maintained that twerp was the name for a pregnant stickleback! Why, I know not. In the clear view of my adulthood, his thesis seems fundamentally flawed. I'd go for the Oxford answer.