David Sorensen, a member of the Trump administration’s speechwriting team, has resigned after being accused of domestic abuse, a White House official says.