Official data shows government borrowing in July was above expectations and at its highest since the pandemic.