Income inequality, consumption, credit and credit risk in a data-driven agent-based model