Britain's credit rating downgraded over Brexit and state of public finances