Scotland's public sector has swelled to a record size - despite First Minister John Swinney pledging to shrink the state.