Lee Johnson's Bristol City beat Cheltenham Town, managed by his father Gary, in a friendly to clinch the Johnson Cup.