Confessions from the David Galaxy Affair (1979)
Confessions from the David Galaxy Affair (UK re-release title: Star Sex) is a 1979 British comedy film directed by Willy Roe and starring Alan Lake, Glynn Edwards, Diana Dors and Antony Booth. A playboy astrologer has to prove an alibi to police for a robbery five years before.
More at Wikipedia.