US swimmer Michael Phelps has become the most successful Olympic athlete ever after winning the 11th gold medal of his career.