When did Egypt regain formal independence from Britain