Scotland’s position as a world leader of tidal and wave energy is at risk of being “eroded” warns a new report.