Global existence of solutions to nonautonomous differential equations in Banach spaces