Abstract elliptic and parabolic systems with applications to problems in cylindrical domains