Barclays has had its credit rating downgraded by Moody’s amid fears of “significant further losses” due to writedowns.