Peano's kernel theorem for vector-valued functions and some applications