A Cahn-Hilliard-type equation with application to tumor growth dynamics