Russell Brand has been granted bail by a London judge over charges of rape and sexual assault.