Years of low levels of investment have held Scotland and the rest of the UK back, Kate Forbes has said.