Germany has long benefited from an era of cheap money that fuelled a boom in real estate, but now the sector is grappling with a major turn of fortune.