Quantum frustration and magnetic ordering in a Hubbard model