The former International Monetary Fund chief Rodrigo Rato has been sentenced to four-and-a-half years in prison for misusing corporate credit cards while in charge of two leading Spanish banks at the height of the country’s financial crisis.