Root numbers and parity of ranks of elliptic curves