Parity of ranks for elliptic curves with a cyclic isogeny