Anisotropy and pressure dependence of the upper critical field of the ferromagnetic superconductor UGe2