Dame Maggie Smith, known for her roles in Harry Potter and Downton Abbey, has died at the age of 89, her sons have said.