A threshold model of antigen-antibody dynamics