Risk-taking banks could face penalties for being irresponsible, the Prime Minister has pledged following a row over bonuses.