\'Etale cohomological dimension, a conjecture of Lyubeznik and bounds for arithmetic rank