Slovakia's prime minister has appeared in public for the first time since an assassination attempt left him fighting for his life.