Scotland’s environment agency has warned the country’s industries and farmers that their waste and inefficiency is now the biggest threat to the environment, overtaking pollution.