Marks and Spencer needs to "urgently" take action on its food business but should dismiss any notion of becoming a "full-line" grocer, a leading retail analyst has warned.