Britain's finance industry could lose up to 40,000 investment banking jobs in the next few years unless it strikes a softer deal on its departure from the European Union, according to a new report.