Tracey Ullman is to return to the BBC, more than 30 years after it broadcast the shows that launched her television career.