Phase transitions and reflection positivity. I. General theory and long range lattice models