Local instability of a rotating flow driven by precession of arbitrary frequency