If a guitar never hums or buzzes, regardless of whether you touch it, it means it's correctly grounded and shielded. It also means the pickups are hum cancelling since neither grounding nor shielding can eliminate single coil hum.
If it makes noise when you don't touch it and it is silent when you touch it, it means it's correctly grounded but not shielded - you are the source of the noise, which is picked up by the electronics and sent to the amp instead of to ground, which is the function of the shielding. When you touch the strings, which are grounded through the bridge, your noise is sent to ground so you don't hear it. This works with all metal strings.
However, since tapewound strings are not coated in metal, when you play them they cannot ground the noise you make, so even if the guitar is shielded you will hear a buzz. The only solution here is to ground yourself another way by connecting yourself to a grounded metal part (a pickup cover grounded through the pickguard, the bridge via a short wire, etc).
Additionally, If it makes noise even when you touch it, it might also mean that something in the guitar is not grounded, typically the strings or the bridge. This is the case with tapewound strings if they don't come into contact with the grounded bridge.
With tapewound strings all 3 of the above scenarios may happen.