A stalker who subjected X Factor winner Joe McElderry to a tirade of Twitter abuse has been found guilty of harassment.