Phelps signs off with gold as world records tumble in swimming finale