UK prime minister resorts to major changes in a bid to calm markets and save her job