Spain's King Juan Carlos I hobbled out of a Madrid hospital and apologised for making an elephant-hunting trip to Botswana - a jaunt that has caused outrage in a country suffering from an economic crisis.