The US aerospace company SpaceX has successfully landed a reusable rocket on an ocean platform, after four previous failed attempts.