Barack Obama's spokesman has denied allegations by Donald Trump that the former President ordered for his offices in New York to be “wiretapped” before the presidential election.

Speaking several hours after Mr Trump made the claims on Twitter, Kevin Lewis asserted that any suggestion Mr Obama or his staff had "ordered surveillance on any US citizen" was false.

He added that a “cardinal rule” of the Obama administration was that no White House official ever interfered in any Justice Department investigations, which are supposed to be conducted free of political influence.

“As part of that practice, neither Obama nor White House official ever ordered surveillance on any US citizen. Any suggestion otherwise is false,” Mr Lewis said.

The statement did not address the possibility that a wiretap of the Trump campaign could have been ordered by Justice Department officials.

Under US law, a federal court would have to have found probable cause that the target of the surveillance is an “agent of a foreign power” in order to approve a warrant authorising electronic surveillance of Trump Tower.

The President made the allegations against his predecessor early on Saturday morning, tweeting: “Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory. Nothing found. This is McCarthyism!”

Shortly afterwards, Mr Trump added: “Is it legal for a sitting President to be ‘wire tapping’ a race for president prior to an election? Turned down by court earlier. A new low!

Trump 'cosplaying a military man'

"I'd bet a good lawyer could make a great case out of the fact that President Obama was tapping my phones in October, just prior to election!"

Mr Trump also suggested that Mr Obama was "sick", writing: "How low has President Obama gone to tapp [sic] my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy!"

It is not the first time Mr Trump has attacked his predecessor, having waged a years-long “birtherism” campaign alleging Mr Obama was not a US citizen and had a fake birth certificate.

The President was tweeting from his Florida seaside resort, Mar-a-Lago, where he was scheduled to meet with Attorney General Jeff Sessions and Homeland Security Secretary John Kelly before a dinner with officials also including adviser Steve Bannon and White House Counsel Don McGahn.

Several conservative news outlets and commentators have made allegations in recent days about Mr Trump being wiretapped during the campaign.

The President did not provide evidence that Mr Obama was responsible for surveillance on his property, and the White House did not immediately return requests for comment.

A former senior US official with direct knowledge of investigations by the Justice Department under the Obama administration denied there was any such investigation of Mr Trump or that his phones were tapped.

In pictures: Protests, pomp and Donald Trump Show all 30 1 /30 In pictures: Protests, pomp and Donald Trump In pictures: Protests, pomp and Donald Trump President-elect Donald Trump acknowledges guests as he arrives on the platform at the US Capitol in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump Donald Trump is sworn in as the 45th president of the United States by Chief Justice John Roberts as Melania Trump looks on during the 58th Presidential Inauguration at the U.S. Capitol in Washington AP In pictures: Protests, pomp and Donald Trump President Donald Trump shakes hands with Justice John Roberts after taking the oath at inauguration ceremonies swearing in Trump as the 45th president of the United States Reuters In pictures: Protests, pomp and Donald Trump President Donald Trump raises his fists after his inauguration on the West Front of the U.S. Capitol Getty In pictures: Protests, pomp and Donald Trump U.S. President-elect Donald Trump greets outgoing President Barack Obama before Trump is inaugurated during ceremonies on the Capitol in Washington Reuters In pictures: Protests, pomp and Donald Trump resident-elect Donald Trump arrives on the platform of the US Capitol in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump Attendees partake in the inauguration ceremonies to swear in Donald Trump as the 45th president of the United States at the U.S. Capitol in Washington DC Reuters In pictures: Protests, pomp and Donald Trump US President Donald Trump delivers his inaugural address during ceremonies at the US Capitol in Washington DC Getty In pictures: Protests, pomp and Donald Trump U.S. President Donald Trump waves with wife Melania during the Inaugural Parade in Washington DC Reuters In pictures: Protests, pomp and Donald Trump Protesters registered their rage against the new president Friday in a chaotic confrontation with police who used pepper spray and stun grenades in a melee just blocks from Donald Trump's inaugural parade route. Scores were arrested for trashing property and attacking officers AP In pictures: Protests, pomp and Donald Trump Demonstrators protest against US President Donald Trump in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump A woman holds a sign before the start of the Presidential Inauguration of Donald Trump at Freedom Plaza in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump Anti-Trump protesters prepare banners for a protest against the inauguration of US President-elect Donald Trump, in Berlin REUTERS In pictures: Protests, pomp and Donald Trump Demonstrators shout slogans against US President-elect Donald Trump in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump Demonstrators march, block foot traffic and clash with U.S. Capitol Police at the entry checkpoints for the Inauguration of Donald Trump Alamy Live News In pictures: Protests, pomp and Donald Trump Demonstrators display a banner as people arrive for US President-elect Donald Trump's inauguration in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump A man displays a placard as people lineup to get into the National Mall for the inauguration of US President-elect Donald Trump in Washington DC Getty Images In pictures: Protests, pomp and Donald Trump Protesters demonstrating against U.S. President Donald Trump raise their hands as they are surrounded by police on the sidelines of the inauguration in Washington DC Reuters In pictures: Protests, pomp and Donald Trump A demonstrator wearing a mask depicting Donald Trump protests outside the US Embassy in London Getty Images In pictures: Protests, pomp and Donald Trump Demonstrators hold placards as they protest outside the US Embassy in London Getty Images In pictures: Protests, pomp and Donald Trump Former US President George W. Bush and First Lady Laura Bush arrive for the Presidential Inauguration at the US Capitol Rex In pictures: Protests, pomp and Donald Trump Michelle Obama and Dr. Jill Biden share an umbrella as President Donald Trump delivers his inaugural address at the inauguration in Washington DC Rex In pictures: Protests, pomp and Donald Trump Former Democratic presidential nominee Hillary Clinton and former President Bill Clinton arrive on the West Front of the U.S. Capitol in Washington Reuters In pictures: Protests, pomp and Donald Trump U.S. Vice President Mike Pence takes the oath of office on the West Front of the U.S. Capitol in Washington, DC Getty Images In pictures: Protests, pomp and Donald Trump Advisors to President-elect Donald Trump, Kellyanne Conway and Steve Bannon depart from services at St. John's Church during the Presidential Inauguration in Washington Reuters In pictures: Protests, pomp and Donald Trump Protesters demonstrating against U.S. President Donald Trump take cover as they are hit by pepper spray by police on the sidelines of the inauguration in Washington DC Reuters In pictures: Protests, pomp and Donald Trump An activist demonstrating against U.S. President Donald Trump is helped after being hit by pepper spray on the sidelines of the inauguration in Washington DC Reuters In pictures: Protests, pomp and Donald Trump A police officer tries to tackle a protester demonstrating against U.S. President Donald Trump Reuters/Adrees Latif In pictures: Protests, pomp and Donald Trump Police arrest and detain a protester in the street in Washington DC Rex In pictures: Protests, pomp and Donald Trump A police officer falls to the ground as another shoots pepper spray at protesters demonstrating against U.S. President Donald Trump on the sidelines of the inauguration in Washington DC Reuters

"This did not happen. It is false. Wrong," the former official said, adding that Mr Obama could not order this, and that it would have been taken to a judge by investigators, but investigators never did this.

The former deputy national security adviser under Mr Obama, Ben Rhodes, meanwhile tweeted that presidents cannot order wiretapping.

"No president can order a wiretap. Those restrictions were put in place to protect citizens from people like you," Mr Rhodes said in his Twitter post.

Members of Congress said the accusations require investigation or explanation.

Senator Ben Sasse, a Republican, described the allegations as serious and said the public deserved more information.

He said it was possible that Mr Trump had been illegally tapped, but if so, the President should explain what sort of invasion took place and how he knew about it.

Mr Trump made the allegations on Twitter from his Mar-a-Lago resort in Florida (Joe Raedle/Getty Images)

Representative Adam Schiff, the most senior Democrat on the House Intelligence Committee, called Mr Trump's assertion a “spectacularly reckless allegation”.

“If there is something bad or sick going on, it is the willingness of the nation's chief executive to make the most outlandish and destructive claims without providing a scintilla of evidence to support them,” he said.

It was the latest twist in a controversy over ties between Mr Trump's associates and Russia that has dogged the early days of his presidency.

Mr Trump and the Kremlin refuted report by US intelligence agencies that concluded Russia hacked and leaked Democratic emails during the election campaign as part of an effort to damage Hillary Clinton.

The former national security adviser, Michael Flynn, resigned in February after revelations that he had discussed sanctions with the Russian ambassador to the US during the transition period.

Mr Flynn had promised Vice President Mike Pence he had not discussed the matter, but transcripts of intercepted communications showed that the subject had come up.