Tom Hanks writes and stars in this brisk and breezy tale of naval heroism as yet another captain charged with a crisis at sea