England seamer Katherine Brunt has announced her retirement from Test cricket but will continue to play in the ODI and T20I formats.