Network Rail engineers will be improving the railway during a three-week closure through Stockport this August.