German Chancellor Olaf Scholz is under mounting pressure ahead of next month's snap election as the country's economy shrinks for a second year in a row.