The former US president has been diagnosed with an aggressive form of prostate cancer that has spread to his bones, his office says.