Cohomological analysis of gauge-fixed gauge theories