Across his seven decade career, Michael Caine proved his versatility in historical dramas and mind-bending science fiction. But the late screen icon was never more hilarious, argues Kevin E G Perry, than when playing opposite Steve Martin as rival con men