Quantum resonances and rectification of driven cold atoms in optical lattices