Imamul Haq hits ton as Pakistan reach 245-1 in first Australia Test