Tech entrepreneur Elon Musk, founder of the electric carmaker Tesla and aeronautics firm SpaceX, has offered to help Boeing fix apparent problems with the batteries in its grounded 787 Dreamliner.