The BBC is failing to stand toe-to-toe with streaming giants, the creator of Peaky Blinders has suggested.