The head of the European Central Bank (ECB) has quit as crisis grips the sclerotic eurozone economy.