Transmission dynamics and resistance in staphylococci