European and Asian markets have gained after a short-term deal to stave off the so-called US fiscal cliff was reached.…