And of course none of the British problems are due to membership of the EU and none will be mended due to leaving the EU.
But leaving will create a whole new set of problems, which will overshadow the existing ones to such a degree they will seem to disappear.