Ed Miliband has said Britain’s future lies in a ‘stronger and deeper’ partnership with the EU.