A British man who was imprisoned for possessing alcohol in Saudi Arabia will be released within a week, Foreign Secretary Philip Hammond says.