Existence and stability of periodic solutions for parabolic competition systems