Ed Miliband refuses to rule out renationalising railways