Magnetic control of valley pseudospin in monolayer WSe2