The vast majority of international banks failed to meet social and environmental 'stress tests', an analysis firm has revealed.