A glitch at an Amazon Web Services data centre in the US left millions around the world unable to access half the internet.