In the history of Dhaka, when was it declared capital for the first time?