Marks and Spencer profits beat expectations on strong food sales