Imam, Shafique hit tons as Australia-Pakistan first Test in 24 years drawn on ‘dead pitch’