London's transport authority has refused to renew an operating licence for the ride-hailing giant Uber because of safety and security concerns.