A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers