King Charles is back at home and recovering from a planned corrective procedure for an enlarged prostate, Buckingham Palace says.