Alexis Tsipras left with six seats short of a majority after junior coalition partner resigns over deal to end decades-long dispute with Macedonia.