Countries spying on their allies sow distrust that could result in less, rather than more security, German Chancellor Angela Merkel has warned.