Donald Trump, his namesake son and his daughter Ivanka have agreed to answer questions under oath next month in the New York attorney general’s civil investigation into his business practices.