GSK has agreed to acquire Affinivax in a deal announced Tuesday, betting more than $3 billion that the eight-year-old startup’s technology can lead to a …