US credit rating downgraded as world stocks tumble