Fighting the cold virus and other threats, body makes trade-off, says study