Quasiprobability distribution functions for periodic phase spaces: I. Theoretical aspects