The Megamaser Cosmology Project: I. VLBI observations of UGC 3789