Charge ordering driven metal-insulator transition in the layered cobaltite HoBaCo2O5.5