Ed Miliband attacks plan for public-funded Royal Yacht