Invariant Higher-Order Variational Problems