Regulation of humoral immune memory in acute versus chronic viral infection