The Taliban has claimed responsibility for a car bombing in Kabul that left at least 29 people dead, as it ratchets up an offensive across Afghanistan.