Explicit solution of a class of higher-order abstract Cauchy problems