Scottish and UK government both failing to use their powers to reverse trend, charity finds