Political social-media posts are twice as likely to go viral if they are negative, a study suggests.