Finance Secretary Shona Robison has said she will stand down from Holyrood at the next election after 27 as an MSP.