Top Gear is to return to TV, the BBC has confirmed, four years after the show was "rested" when co-host Andrew Flintoff was injured in a crash during filming.