David Warner hit his first international century since returning from suspension, in Australia's ICC World Cup match against Pakistan at Taunton.