Finance secretary Shona Robison has announced she will stand down at the next Holyrood election after 27 years as an MSP.