Existence results for a class of abstract nonlocal Cauchy problems