Semiclassical limit for Schrödinger equations with magnetic field and Hartree-type nonlinearities