More than 1.3 million refugees have crossed into border countries trying to escape Russian troops as war rages in Ukraine.