Prisoners in Scotland are being "harmed" by the cost of living crisis as inmate wages fail to keep pace with the rising costs of goods and food, according to a new report.