Phase transitions and magnetic properties of an organic conductor (BEDT-TTF)6Cu2Br6 with mixed valence Cu ions