Marks and Spencer plans to close 27 stores and cut over 1,200 jobs as it looks to slash costs from the business after seeing sales slump over the last three months.