Middle-class party-goers who take cocaine socially are fuelling gang violence on the streets of London, Sadiq Khan has said.