Harry Potter spin-off Hogwarts Legacy has been delayed until 2022, publisher Warner Bros. Games has announced.