On the symmetries of the Hubbard model: application to finite-size clusters