Amazon is seeing its lead shrink in the lucrative cloud computing industry, where smaller rivals are growing faster.