The backlog in maintaining crumbling schools, hospitals and prisons costs at least £49 billion but could be larger, a spending watchdog has said.