Marks and Spencer profits rise for first time in 4 years