Marlborough School in Woodstock will be given a £4.5 million grant to expand its teaching facilities due to increased demand for pupil places in the area.