Credit rating agency Standard and Poor's (S&P) declared Argentina to be in default, after the country's last-minute talks with a court-appointed mediator failed to reach a settlement with holdout creditors.