A 46-year-old depressed man suffering with anxiety and panic attacks climbed out of the window of a police car after he had been arrested, a court was told.

Mark Burnham was caught by police officers with 0.9 grams of the cocaine as he drove along the A440 Broomhall Way, St Peter's, Worcester.

He pleaded guilty to possessing the class A drug and obstructing police officers in their duty when he appeared at Worcester Magistrates Court.

Linda Jeffries, prosecuting, said officers saw Burnham move items from the passenger seat of his Volkswagen car as it pulled into a layby.

"They spoke to the defendant and a police dog was requested," she said.

"While they were waiting, he became more agitated and aggressive. He tried to get out of the police vehicle. He wound down the window and climbed out because he wanted to have a cigarette. He was put back in the vehicle and he became more and more aggressive and saying he was going to be sick but he wasn't."

Mrs Jeffries said police found two small cellophane packets with cocaine in them when Burnham, of Orlin Road, Colwall, near Malvern, took off his boxer shorts back at the police station.

In mitigation, Susie Duncan said Burnham only found the drug in his car after he dropped a friend off at Shrub Hill train station.

"He assumed they were amphetamines," she said.

"He didn't know how the drugs came to be in his car. On his way back into Worcester it would appear the police have been given some information and the vehicle is stopped.

"He then panics because he knows he's got these in his car and hides them inside his underpants."

As a result, Burnham was fined £75 for possessing cocaine and £50 for obstructing police officers in their duty and made to pay £60 court costs.