Britain will officially leave the European Union at 2300 GMT but will initially remain under EU rules for trade, travel and business during an 11-month transition period.