Loss mechanisms in superconducting thin film microwave resonators