Spanish bankruptcies hit record in 2013