Ukraine has cut all diplomatic ties with Russia after President Vladimir Putin declared war on Ukraine.