The British government has been warned by lawmakers that failure to prepare for a scenario in which no deal is reached with the European Union over Brexit would be a "serious dereliction of duty."