Decline in GP home visits drives vulnerable people into care homes