Resonant behaviour of MHD waves on magnetic flux tubes